<?php

namespace App\Http\Controllers\admin;

use App\Dao\BillsDao;
use App\Dao\ConsumerCouponBillsDao;
use App\Dao\OliBillsDao;
use App\Services\Code;

class BillsController extends BaseController
{
    public function bills()
    {
        if(getIsHasPage()){
            return Code::message('',200,BillsDao::pagenate(request()->all()));
        }
        return view('admin.users.bills');
    }

    public function consumer_coupon_bills()
    {
        if(getIsHasPage()){
            return Code::message('',200,ConsumerCouponBillsDao::pagenate(request()->all()));
        }
        return view('admin.users.consumer_coupon_bills');
    }

    public function oli_bills()
    {
        if(getIsHasPage()){
            return Code::message('',200,OliBillsDao::pagenate(request()->all()));
        }
        return view('admin.users.oli_bills');
    }



}
